#ifndef MYEVENTLOOP_H
#define MYEVENTLOOP_H

#include <vector>
#include "DetectionEvent.h"
#include "SelectEvent.h"

class MyEventLoop
{
public:
    MyEventLoop();
    ~MyEventLoop();

    void loop();
    void quit();
    void addToLoop(const int fd);


private:
    void addToLoop();
    bool isLooping;
    std::vector<int> fds;
    bool isQuit;
    DetectionEvent *e;
};

#endif // MYEVENTLOOP_H
